import java.io.Closeable;
import java.io.FileInputStream;
import java.io.IOException;

public class my_input implements Closeable {
  FileInputStream fis;

  public my_input(FileInputStream fis) { this.fis = fis; }

  public int read() throws IOException { return fis.read(); }

  public void close() throws IOException {
    if (fis != null)
      fis.close();

    // Throw a exception to make a resource leak.
    throw new IntendedException();
  }
}